import { AppRouteRecordRaw } from '../types';

const DASHBOARD: AppRouteRecordRaw[] = [
  {
    path: '/mine',
    name: 'mine',
    component: () => import('@/views/mine/index.vue'),
    meta: {
      title: '我的',
      requiresAuth: true,
      tabBar: true,
    },
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/views/home/index.vue'),
    meta: {
      title: '首页',
      requiresAuth: true,
      tabBar: true,
    },
  },
  {
    path: '/notice',
    name: 'notice',
    component: () => import('@/views/notice/index.vue'),
    meta: {
      title: '消息',
      requiresAuth: true,
      tabBar: true,
    },
  },
  {
    path: '/applyRecord',
    name: 'applyRecord',
    component: () => import('@/views/role/driver/applyRecord/index.vue'),
    meta: {
      title: '驾驶员申请记录',
      requiresAuth: true,
      tabBar: false,
    },
  },
  {
    path: '/allTask',
    name: 'driverAllTask',
    component: () => import('@/views/role/driver/allTask/index.vue'),
    meta: {
      title: '驾驶员所有运单',
      requiresAuth: true,
      tabBar: false,
    },
  },
  {
    path: '/taskDetail',
    name: 'taskDetail',
    component: () => import('@/views/taskDetail/index.vue'),
    meta: {
      title: '运单详情',
      requiresAuth: true,
      tabBar: false,
    },
  },
  {
    path: '/dispatchTaskList',
    name: 'DispatchTaskList',
    component: () => import('@/views/role/dispatch/allTask/index.vue'),
    meta: {
      title: '调度员运单管理',
      requiresAuth: true,
      tabBar: false,
    },
  },
  {
    path: '/dispatchBillList',
    name: 'DispatchBillList',
    component: () => import('@/views/role/dispatch/billList/index.vue'),
    meta: {
      title: '调度员运单结算',
      requiresAuth: true,
      tabBar: false,
    },
  },
  {
    path: '/userCenter',
    name: 'UserCenter',
    component: () => import('@/views/userCenter/detail/index.vue'),
    meta: {
      title: '个人中心',
      requiresAuth: true,
      tabBar: false,
    },
  },
];

export default DASHBOARD;
